package org.hxyjs.entity;

import java.io.Serializable;
import java.util.Date;

/**
 * @author 
 */
public class ChatAdmin implements Serializable {
    private String cano;

    private String caname;

    private String capwd;

    private String salt;

    private Integer isdelete;

    private Date createdate;

    private String caimg;

    private static final long serialVersionUID = 1L;

    public String getCano() {
        return cano;
    }

    public void setCano(String cano) {
        this.cano = cano;
    }

    public String getCaname() {
        return caname;
    }

    public void setCaname(String caname) {
        this.caname = caname;
    }

    public String getCapwd() {
        return capwd;
    }

    public void setCapwd(String capwd) {
        this.capwd = capwd;
    }

    public String getSalt() {
        return salt;
    }

    public void setSalt(String salt) {
        this.salt = salt;
    }

    public Integer getIsdelete() {
        return isdelete;
    }

    public void setIsdelete(Integer isdelete) {
        this.isdelete = isdelete;
    }

    public Date getCreatedate() {
        return createdate;
    }

    public void setCreatedate(Date createdate) {
        this.createdate = createdate;
    }

    public String getCaimg() {
        return caimg;
    }

    public void setCaimg(String caimg) {
        this.caimg = caimg;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        ChatAdmin other = (ChatAdmin) that;
        return (this.getCano() == null ? other.getCano() == null : this.getCano().equals(other.getCano()))
            && (this.getCaname() == null ? other.getCaname() == null : this.getCaname().equals(other.getCaname()))
            && (this.getCapwd() == null ? other.getCapwd() == null : this.getCapwd().equals(other.getCapwd()))
            && (this.getSalt() == null ? other.getSalt() == null : this.getSalt().equals(other.getSalt()))
            && (this.getIsdelete() == null ? other.getIsdelete() == null : this.getIsdelete().equals(other.getIsdelete()))
            && (this.getCreatedate() == null ? other.getCreatedate() == null : this.getCreatedate().equals(other.getCreatedate()))
            && (this.getCaimg() == null ? other.getCaimg() == null : this.getCaimg().equals(other.getCaimg()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getCano() == null) ? 0 : getCano().hashCode());
        result = prime * result + ((getCaname() == null) ? 0 : getCaname().hashCode());
        result = prime * result + ((getCapwd() == null) ? 0 : getCapwd().hashCode());
        result = prime * result + ((getSalt() == null) ? 0 : getSalt().hashCode());
        result = prime * result + ((getIsdelete() == null) ? 0 : getIsdelete().hashCode());
        result = prime * result + ((getCreatedate() == null) ? 0 : getCreatedate().hashCode());
        result = prime * result + ((getCaimg() == null) ? 0 : getCaimg().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", cano=").append(cano);
        sb.append(", caname=").append(caname);
        sb.append(", capwd=").append(capwd);
        sb.append(", salt=").append(salt);
        sb.append(", isdelete=").append(isdelete);
        sb.append(", createdate=").append(createdate);
        sb.append(", caimg=").append(caimg);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}